<?php

/**
 * Convenio form.
 *
 * @package    sistema_estadisticas
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ConvenioForm extends BaseConvenioForm
{

	public function configure()
	{
		$this->widgetSchema['carrera_id']->setOption('order_by', array('denominacion', 'ASC'));
		$this->widgetSchema['f_inicio'] = new WidgetFormDatePick();
		$this->widgetSchema['f_fin'] = new WidgetFormDatePick();

		$this->validatorSchema->setPostValidator(new ValidatorFechas(array('begin_date_column' => 'f_inicio', 'end_date_column' => 'f_fin')));

		parent::setupAnexoForm();
	}

}
